package com.gewu.bluetoothflow.tools

import android.content.Context
import android.content.SharedPreferences

class PreferencesManager(val context: Context) {
    private val PREFS_FILE = "MyPrefsFile"
    private val prefs: SharedPreferences = context.getSharedPreferences(PREFS_FILE, Context.MODE_PRIVATE)

    var languages: String  //语言
        get() = prefs.getString("languages", "").toString()
        set(value) = prefs.edit().putString("languages", value).apply()

}